package view;

import javax.swing.*;
import java.awt.*;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Student
 * Date: 30/11/12
 * Time: 12:14
 * To change this template use File | Settings | File Templates.
 */
public class DicePanel extends JPanel{

    public DicePanel(List<Integer> dice) {
        setLayout(new FlowLayout(FlowLayout.CENTER));
        for(int d : dice) {
            JLabel diceLabel = new DiceLabel(d, 40, 40);
            add(diceLabel);
        }
        setBackground(Color.white);
    }

}
